#ifndef PUBLICSTRUCT_H
#define PUBLICSTRUCT_H

#include <QString>
#include <QDate>
#include <QSqlDatabase>

//struct Task
//{
//    QString projectName;
//    QString stroyName;
//    QString taskId;
//    QString taskName;
//    QString taskStatus;
//    QString developName;
//    QString developRole;
//    QString consumed;
//    QString title;
//    QDate start;
//    QDate end;
//};


struct DbInfo
{
    QString hostName;
    QString port;
    QString dbName;
    QString userName;
    QString password;
    QString dbdesc;
    QSqlDatabase mysqlConn;
};

struct PersonHours
{
    QString ProjectId;
    QString projectName;
    QString taskId;
    QString taskName;
    QString consumed;
};

struct DeptDevTotalHours
{
    QString teamName;
    QString userName;
    QString consumed;
};

struct DeptDevTotalHoursByProject
{
    QString teamName;
    QString userName;
    QString consumed;
    QString projectName;
};

struct DevDetailHours
{
    QString projectName;
    QString taskName;
    QString taskStatus;
    QString writeDate;
    QString consumed;
    QString taskDesc;
};

struct PrjVerPlan
{
    QString verPlanId;
    QString verPlanName;
    QString verStartDate;
    QString verEndDate;
    QString verPlanDesc;
    QString verPlanStatus;
};

struct StoryTaskByVer
{
    QString storyName;
    QString taskName;
    QString taskStatus;
    QDate taskStartDate;
    QDate taskEndDate;
    QString taskUser;
    QString taskConsumed;
    QString taskFinishDate;
    int taskId;
};

struct UserHolidayInfo
{
    QString userName;
    QString holidayType;
    QString approverStatus;
    QString approverResult;
    QString startDate;
    QString endDate;
    QString housrs;

};

#endif // PUBLICSTRUCT_H
